package pam.core;

import java.util.logging.ConsoleHandler;
import java.util.logging.Logger;

/**
 * 日志管理工厂
 */
public class LoggerFactory {

	/**
	 * 获取日志记录器
	 * 
	 * @return
	 */
	public static Logger getLogger() {

		Logger logger = Logger.getLogger("pam");
		try {
			logger.addHandler(new ConsoleHandler());
		} catch (SecurityException e) {
			e.printStackTrace();
		}
		return logger;
	}

}
